var ajax = require('../../helper/ajax')
var globalConfig = require('../config')
module.exports = {
  getuserInvestDetail: function (datas, req) {
    // return request.post(globalConfig.appcommon.url + '/finance/web/user-invest').send(datas)
    return ajax.post(globalConfig.appcommonService.url + '/finance/web/user-invest', datas, req)
  },
  getBidDetail: function (datas, req) {
    return ajax.post(globalConfig.appcommonService.url + '/finance/user-invest-detail', datas, req)
    // return request.post(globalConfig.appcommon.url + '/finance/user-invest-detail').send(datas)
  },
  getMatchedBidList: function (datas, req) {
    return ajax.post(globalConfig.appcommonService.url + '/reservation/matched-bid-list', datas, req)
    // return request.post(globalConfig.appcommon.url + '/reservation/matched-bid-list').send(datas)
  },
  getMatchedBidDetail: function (datas, req) {
    return ajax.post(globalConfig.appcommonService.url + '/reservation/matched-bid-detail', datas, req)
    // return request.post(globalConfig.appcommon.url + '/reservation/matched-bid-detail').send(datas)
  }
}
